package entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;
import java.util.Date;

/**
 * The type Store.
 */
public class Store extends Common implements Serializable {
    private static final long serialVersionUID = -18032497573894321L;
    @TableId(type = IdType.ID_WORKER_STR)
    private String id;

    /**
     * 门店名称
     */
    private String sname;
    /**
     * 门店联系人
     */
    @TableField(value = "storeContact")
    private String storeContact;
    /**
     * 门店电话
     */
    @TableField(value = "storeMobile")
    private String storeMobile;
    /**
     * 门店地址
     */
    @TableField(value = "storeAddress")
    private String storeAddress;
    /**
     * 门店图标
     */
    private String logo;
    /**
     * 帐号
     */
    @TableField(value = "userName")
    private String userName;
    /**
     * 密码
     */
    private String password;
    /**
     * 折扣
     */
    private Double discount;
    /**
     * 重要星级
     */
    private Integer importance;
    /**
     * 路线id
     */
    @TableField(value = "routeId")
    private String routeId;
    /**
     * 停用状态，0为未停，1为停
     */
    private Integer deactivate;

    /**
     * 删除，0未删除，1已删除
     */
    private Integer deleted;

    private String storehouseId;

    public String getStorehouseId() {
        return storehouseId;
    }

    public void setStorehouseId(String storehouseId) {
        this.storehouseId = storehouseId;
    }

    @Override
    public String toString() {
        return "Store{" +
                "id='" + id + '\'' +
                ", sname='" + sname + '\'' +
                ", storeContact='" + storeContact + '\'' +
                ", storeMobile='" + storeMobile + '\'' +
                ", storeAddress='" + storeAddress + '\'' +
                ", logo='" + logo + '\'' +
                ", userName='" + userName + '\'' +
                ", password='" + password + '\'' +
                ", discount=" + discount +
                ", importance=" + importance +
                ", routeId='" + routeId + '\'' +
                ", deactivate=" + deactivate +
                ", deleted=" + deleted +
                ", storehouseId='" + storehouseId + '\'' +
                '}';
    }

    public Store(String createUser, Date createTime, String updateUser, Date updateTime, String id, String sname, String storeContact, String storeMobile, String storeAddress, String logo, String userName, String password, Double discount, Integer importance, String routeId, Integer deactivate, Integer deleted) {
        super(createUser, createTime, updateUser, updateTime);
        this.id = id;
        this.sname = sname;
        this.storeContact = storeContact;
        this.storeMobile = storeMobile;
        this.storeAddress = storeAddress;
        this.logo = logo;
        this.userName = userName;
        this.password = password;
        this.discount = discount;
        this.importance = importance;
        this.routeId = routeId;
        this.deactivate = deactivate;
        this.deleted = deleted;
    }

    public Store() {
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getSname() {
        return sname;
    }

    public void setSname(String sname) {
        this.sname = sname;
    }

    public String getStoreContact() {
        return storeContact;
    }

    public void setStoreContact(String storeContact) {
        this.storeContact = storeContact;
    }

    public String getStoreMobile() {
        return storeMobile;
    }

    public void setStoreMobile(String storeMobile) {
        this.storeMobile = storeMobile;
    }

    public String getStoreAddress() {
        return storeAddress;
    }

    public void setStoreAddress(String storeAddress) {
        this.storeAddress = storeAddress;
    }

    public String getLogo() {
        return logo;
    }

    public void setLogo(String logo) {
        this.logo = logo;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Double getDiscount() {
        return discount;
    }

    public void setDiscount(Double discount) {
        this.discount = discount;
    }

    public Integer getImportance() {
        return importance;
    }

    public void setImportance(Integer importance) {
        this.importance = importance;
    }

    public String getRouteId() {
        return routeId;
    }

    public void setRouteId(String routeId) {
        this.routeId = routeId;
    }

    public Integer getDeactivate() {
        return deactivate;
    }

    public void setDeactivate(Integer deactivate) {
        this.deactivate = deactivate;
    }

    public Integer getDeleted() {
        return deleted;
    }

    public void setDeleted(Integer deleted) {
        this.deleted = deleted;
    }
}

